PH and impedence testing